/*
 * @Author: 飞越疯人院 353362604@qq.com
 * @Date: 2022-09-22 09:44:20
 * @LastEditors: 飞越疯人院 353362604@qq.com
 * @LastEditTime: 2023-01-09 17:45:59
 * @FilePath: \adminstration\src\Common\Modal\ThrModalList\SampleEnclosure.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import { commonTableList } from '../config'

export const ProjectSetUpOperation = async ({ data }) => {
    let dataList = {
        url: 'ProjectSetUpOperation',
        uuid: data.uuid,
        type: '项目菜单配置',
        width: 600,
        classification: 'FormModal',
        hideInSearch: true,
        pageSize: 10,
        params: {},
        added: 'posProjectOperationPayment',
        additional: { OrganizationUuid: data.uuid },
        columns: [
            { ...commonTableList.tableName, title: '名称', className: 'RemarkForm' },
            {
                dataIndex: 'yearMonth',
                title: '年月',
                valueType: 'Date',
                picker: 'month',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'loanPrincipalCopeAmount',
                title: '贷款本金应付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'loanPrincipalPaidAmount',
                title: '贷款本金已付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'loanInterestCopeAmount',
                title: '贷款利息应付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'loanInterestPaidAmount',
                title: '贷款利息已付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'capitalPrincipalCopeAmount',
                title: '资本金本金应付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'capitalPrincipalPaidAmount',
                title: '资本金本金已付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'capitalInterestCopeAmount',
                title: '资本金收益应付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'capitalInterestPaidAmount',
                title: '资本金收益已付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'operationFeeCopeAmount',
                title: '运营养护费应付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
            {
                dataIndex: 'operationFeePaidAmount',
                title: '运营养护费已付金额',
                valueType: 'inputNumber',
                rules: true,
                className: 'RemarkForm',
            },
        ],
    }
    return dataList
}
